package com.iengoo.inductionms.ctrl.rest;

import com.iengoo.inductionms.entity.Nation;
import com.iengoo.inductionms.service.NationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Author:huermao
 * 民族
 **/
@RestController
@RequestMapping("/nation")
public class NationController {
    @Autowired
    private NationService nationService;
    @GetMapping
    public List<Nation> getNation() {
        List<Nation> nationList = nationService.queryAll();
        return nationList;
    }
}
